package com.hemaapp.yjnh.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.TextView;

import com.hemaapp.hm_FrameWork.HemaNetTask;
import com.hemaapp.hm_FrameWork.result.HemaBaseResult;
import com.hemaapp.yjnh.BaseActivity;
import com.hemaapp.yjnh.R;
import com.hemaapp.yjnh.bean.Notice;

/**
 * 通知详情页面
 */
public class NoticeInfoActivity extends BaseActivity {
	private TextView titleText;
	private ImageButton titleLeft;

	private TextView textView;

	private Notice noticeExra;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setContentView(R.layout.activity_noticeinfo);
		super.onCreate(savedInstanceState);
	}

	@Override
	protected void callBeforeDataBack(HemaNetTask netTask) {

	}

	@Override
	protected void callAfterDataBack(HemaNetTask netTask) {

	}

	@Override
	protected void callBackForServerSuccess(HemaNetTask netTask,
			HemaBaseResult baseResult) {

	}

	@Override
	protected void callBackForServerFailed(HemaNetTask netTask,
			HemaBaseResult baseResult) {

	}

	@Override
	protected void callBackForGetDataFailed(HemaNetTask netTask, int failedType) {

	}

	@Override
	protected void findView() {
		titleText = (TextView) findViewById(R.id.title_text);
		titleLeft = (ImageButton) findViewById(R.id.title_left_btn);

		textView = (TextView) findViewById(R.id.textview);
	}

	@Override
	protected void getExras() {
		noticeExra = (Notice) mIntent.getSerializableExtra("notice");
	}

	@Override
	protected void setListener() {
		titleText.setText("通知详情");
		titleLeft.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
		textView.setText(noticeExra.getContent());
	}

}
